
#include <iostream>
using namespace std;
#include "Calculator.h"


int main()
{
    Calculator cal;

    cout << "请输入表达式，回车结束。" << endl;
    getline(cin, cal.Infix, '\n');
    int flag = cal.calculate();
    if (!flag){cout << cal.Infix << " = " << cal.getResult() << endl;}

    return 0;
}
